﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NguoiDungDetails.aspx.cs" Inherits="HeThong_NguoiDungDetails" %>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link rel="stylesheet" href="../css/pop-up.css"/>
<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../js/popup.js"></script>
</head>

<body>
    <form id="form1" runat="server" method="post">
	<section class="wrapper-pop-up-width-500">
    	<header>
    	    <h1 class="heading-pop-up-width-500"><asp:Label ID="lblTitle" runat="server" Text=""/></h1>
            <ul class="top-icon-pop-up-width-500">
            	<li><a class="dropdown" data-dimension="500|266" href="#"></a></li>
                <li><a class="maximum" data-dimension="100%|100%" href="#"></a></li>
                <li><a class="minimum" data-dimension="500|266" href="#"></a></li>         
                <li><a class="turn-off" data-dimension="500|266" href="#"></a></li>
            </ul>
        </header>
        
        <section class="content-pop-up-width-500">
            	<table class="table-pop-up-width-500 table-thi-dua">
                		
                	<tr>
                    	<td>
                        	Tên đăng nhập (*):
                        </td>
                        <td>
                        	<input class="box-nhap-chi-tiet-lop" type="text" name="box-nhap-ma-quyen" placeholder="Tên đăng nhập" id="txtTenDN" runat="server"/> 
                        </td>
                        <td>
                        </td>
                        
                    </tr>
                    <tr>
                    	<td>
                        	Mật khẩu(*):
                        </td>
                        <td colspan="2">
                        	<input class="box-nhap-chi-tiet-lop" type="text" name="box-nhap-ten-lop" placeholder="Mật khẩu" id="txtMatKhau" runat="server"/>
                            
                        </td>
                        
                    </tr>
                    <tr>
                    	<td>Email (*):</td>
                        <td>
                        		<input class="box-nhap-chi-tiet-lop" type="text" name="box-nhap-ten-lop" placeholder="Nhập email" id="txtEmail" runat="server"/>
                          
                        </td>
                        <td>
                        </td>
                    </tr>
                    
                      <tr>
                    	<td>Thuộc đơn vị (*):</td>
                        <td>
                        	 <asp:DropDownList ID="ddlDonVi" CssClass="combobox" runat="server" 
        AutoPostBack="False"></asp:DropDownList>
     
                        </td>
                        <td>
                        </td>
                    </tr>
                      <tr id="trLast" runat ="server">
                    	<td>Đăng nhập lần cuối:</td>
                        <td>
                        		<input class="box-nhap-chi-tiet-lop" type="text" name="box-nhap-ten-lop" placeholder="" id="txtLast" runat="server"/>
                          
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                    	<td>
                       
                        </td>
                    	<td>
                        	<input class="box-checkbox" type="checkbox" id="chkIsAdmin" runat="server"/>                        	Là Admin
                        </td>
                        <td>
                        	
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input class="box-checkbox" type="checkbox" id="chkHoatDong" runat="server"/>                       	  Hoạt động
                        </td>
                    </tr>
              
                </table>
                <section class="clear">
                </section><!--End .clear-->
                <section class="bottom-content">
            	<section class="bottom-left-content"></section><!--END .bottom-left-content-->
                <section class="bottom-right-content">
            	<input class="button-pop-up" type="button" value="Cập nhật" id="btnUpdate" runat="server" OnServerClick="btnUpdate_Click"/>   
                <input class="button-pop-up" type="button" value="Hủy bỏ" onclick="Thoat()"/>        
                </section><!--END .bottom-right-content-->
				<section class="clear"></section>
            </section><!--End .bottom-content-->
        </section><!--End .content-->
    </section><!--END.wrapper-->
    </form>
</body>
</html>

<script type="text/javascript">
    function Thoat() {
        window.parent.closeColorBox();
    }

    //$('document').ready(function ()
    $('#btnUpdate').click(function () {
        validateInPut();
    });
    function validateInPut() {
        if ($('#txtMatKhau').attr("value") == "") {
            alert("Chưa nhập mật khẩu!");
            return false;
        }

        if ($('#txtTenDN').attr("value") == "") { //# null
            alert("Chưa nhập tên!");
            return false;
        }
        }
        return true;
    }
</script>
